home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / Item Class / Item headers / CTableExpander.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-30  |  986 b   |  39 lines  |  [TEXT/KAHL]

  1. /*
  2.  * File:        CTableExpander.c
  3.  * Created:        8/1/93
  4.  * Desc:        A mousetask that handles drawing the expando icon.
  5.  *
  6.  * Superclass:    CTableDragger.
  7.  * Uses:        CItemTable, CItem.
  8.  * Original Author:    W. Wesley Monroe
  9.  * Modifications:    
  10.  *
  11.  * Copyright © 1993 Animas Software Production. All rights reserved.
  12.  */
  13.  
  14.  
  15. #include <CTableDragger.h>
  16.  
  17. class CItem;
  18.  
  19. class CTableExpander : public CTableDragger {
  20.  
  21.     CItem    *fSelItem;
  22.  
  23.     Rect        fIconR; // Rectangle for the expanding icon
  24.  
  25.     Boolean fInTriangle;    // Is the mouse in the triangle...
  26.     Boolean fInverted;        // Is the triangle currently inverted...
  27.  
  28.     short    fArrowICNid1, fArrowICNid2, fArrowICNid3;
  29.     short    fIndentLeft, fExpanded;
  30.  
  31. public:
  32.  
  33.     void ITableExpander(CTable *aTable, short theModifiers,
  34.                         long selFlags, CItem *item, Rect iconR);
  35.  
  36.     virtual void BeginTracking(LongPt *startPt);
  37.     virtual void KeepTracking(LongPt *currPt, LongPt *prevPt, LongPt *startPt);
  38.     virtual void EndTracking(LongPt *currPt, LongPt *prevPt, LongPt *startPt);
  39. };